package com.everwin.web.controller.common.service.impl;

import com.everwin.web.controller.common.service.FileService;
import com.everwin.web.domain.FileDetail;
import com.everwin.web.mapper.FileDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FileServiceImpl implements FileService {

    @Autowired
    private FileDetailMapper fileDetailMapper;

    @Override
    public void saveFileDetail(FileDetail fileDetail) {
        fileDetailMapper.saveFileDetail(fileDetail);
    }

    @Override
    public FileDetail getFileDetail(String fileHash) {
        return fileDetailMapper.getFileDetail(fileHash);
    }
}
